package com.sa.user.api.feignapi;

import com.sa.user.api.dto.PermissionDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author Architecture Station
 * @version 1.0
 * @website 
 */
@FeignClient(name = "user-service")
public interface PermissionApi {

    @GetMapping("/api/permission/{roleId}/permissions")
    public List<PermissionDTO> loadPermissionsByRoleId(@PathVariable Integer roleId);

}
